steam_file_read

语法:

steam_file_read(filename);


参数 描述
filename 要读取的文件的名称。


返回: String(字符串)


描述

This function will read the contents of the given file into a string which can later be parsed in your game.


例如:

if steam_file_exists("Save.txt")
   {
   save_str = steam_file_read("Save.txt");
   }

The above code checks to see if a file exists on the Steam Cloud and if it does, it opens it and reads its contents into the variable "save_str".